package 笔试.网易笔试.第一题单词;

import java.util.HashMap;
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int n =Integer.valueOf(in.nextLine());
        HashMap<String,Integer> map=new HashMap<>();
        for (int i = 0; i < n; i++)
        {
            String strkey=in.nextLine();
            int count=0;
            if (map.containsKey(strkey))
            {
                count =map.get(strkey);
                count++;
                map.replace(strkey,count);
            }
            else
            {
                count++;
                map.put(strkey,count);
            }
        }

        //不确定特定的单词，判断每个输入的单词是否满足1%
        //hashmap key是字符串，value是出现的次数
        int cnt=0;
        for (Integer value:map.values())
        {
            if ((value/(double)n)>=0.01)
                cnt++;
        }

        System.out.println(cnt);
    }
}
